//
//  AkuNetWorkTool.h
//  AkuCareLink
//
//  Created by 阿酷 on 16/7/5.
//  Copyright © 2016年 AkuApp. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

//请求成功调用的block
typedef void(^SuccessCompletedBlock)(id responseObject);
//请求失败调用额block
typedef void(^FailureCompletedBlock)(NSError * error);

@interface AkuNetWorkTool : AFHTTPSessionManager

+ (instancetype)shareManager;

//get请求
+ (void)GET_RequestWithURLString:(NSString *)url params:(NSDictionary *)dic successBlock:(SuccessCompletedBlock)successBlk errorBlock:(FailureCompletedBlock)errorBlk;

//post请求
+ (void)POST_RequestWithURLString:(NSString *)url params:(NSDictionary *)dic successBlock:(SuccessCompletedBlock)successBlk errorBlock:(FailureCompletedBlock)errorBlk;


@end
